// 文章相关的 接口
import axios from '@/utils/request.js'

// 1.获取 指定频道的 文章id
export const getChannelArtList = function (channel_id, timestamp) {
    return axios({
        method: 'get',
        url: '/v1_0/articles',
        params: {
            channel_id,
            timestamp,
            with_top: 1
        }
    })
}

// 2.获取 文章详情
export const getArticleById = function (aid) {
    return axios({
        method: 'get',
        url: `/v1_0/articles/${aid}`
    })
}